package com.gshrms.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gshrms.system.domain.SysUserMenus;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户关联的菜单权限 Mapper 接口
 * </p>
 *
 * @author laoyang
 * @since 2025-03-14
 */
@Mapper
public interface SysUserMenusMapper extends BaseMapper<SysUserMenus> {




    /**
     * 查询某个用户在某个页面有哪些数据权限
     * @param userId
     * @param menuId
     * @return
     */
    List<Long> getAuthorityLimitByUserMenu(@Param("userId") Long userId,
                                            @Param("menuId") Long menuId);
}
